package cn.tedu.ymg.product.util;

import org.springframework.stereotype.Component;

import java.util.Random;

@Component
public class IdUtil {

    public synchronized long generateOrderId(){
        Random random = new Random();
        long orderId = random.nextLong()*100L;
        return orderId;
    }
}
